package com.hongzhimei.yukicomic.activity;

import android.support.v7.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.hongzhimei.yukicomic.App;
import com.hongzhimei.yukicomic.R;

/**
 *
 */

public class SplashActivity extends AppCompatActivity {

    Handler handler=new Handler();

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(App.getContext(),MainAcitivity.class);
                startActivity(intent);
                finish();
            }
        },2000);
    }
}
